const os = require('./build/libs/os')
const {join} = require('path')
const { execSync } = require('child_process');

const PACKAGE_ROOT = __dirname;
const PROJECT_ROOT = join(PACKAGE_ROOT, '..');

console.log(PROJECT_ROOT)

async function run(){

    await os.copyDirFn(join(PROJECT_ROOT,'imodules/obs-studio-node'),join(PROJECT_ROOT,'node_modules/obs-studio-node')).then(()=>{
        console.error(`复制依赖obs-studio-node成功`)
    })
    await os.copyDirFn(join(PROJECT_ROOT,'imodules/OSN'),join(PROJECT_ROOT,'node_modules/obs-studio-node')).then(()=>{
        console.error(`覆盖宇航自定义OSN成功`)
    })
}

run()

